import axios from 'axios'

import { BASE_URL } from '../config/const.js'
axios.defaults.withCredentials = true
axios.defaults.headers.post['Content-Type'] = 'application/x-www-form-urlencoded'

const axiosObj = axios.create({
  baseURL: BASE_URL,
  timeout: 30000
})

export default axiosObj
